Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CVE 2021 25943 fix2 #162

Closed
wants to merge 2 commits into from
Closed

CVE 2021 25943 fix2 #162

wants to merge 2 commits into from

Conversation

wid
Copy link

@wid wid commented Jan 6, 2022

Hi,

The CVE-2021-25943 security is now 1 year old and raises npm audit issues.

So, I applied the following recommandation:

#159 (comment)

with units tests into this pull request.

Nothing else has been changed. The npm test is still 100%:
`

[email protected] test
lab -c -l -t 100 -a code
..................................................
..................................................
..................................................
...............
165 tests complete
Test duration: 58 ms
Assertions count: 608 (verbosity: 3.68)
Coverage: 100.00%
Can you please accept this PR and publish an npm package accordingly ?

Note that I changed the implementation after review with my team, I silently ignore set with forbidden keys like in https://github.com/tjmehta/keypather/pull/43/files instead of throwing an error.
Test have been updated accordingly.

@tjmehta
Copy link
Owner

tjmehta commented Jan 7, 2022

other people have reported this we do not consider prototype pollution a security issue for 101. for example, lodash set is similar and does not handle prototype pollution.

developers that use any user passed strings with set or file is the real security issue. this is not IMO.

happy to look at anything if you see something, thanks!

@tjmehta tjmehta closed this Jan 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants